#!/usr/bin/env python
# coding=utf-8
# __author__ = 'Yunchao Ling'

import os
import json

filelist = os.listdir(".")
for filename in filelist:
    if filename.endswith("json"):
        print("Verifying " + filename + "...")
        try:
            f = file(filename)
            s = json.load(f)
            f.close()
        except ValueError:
            print(filename + " is invalid.")
